import router from "@/router";
import {ElMessage} from "element-plus";
//路由跳转
//url路径，params 路径跳转所传参数，
function routerRedirect(url,params) {
    if (params == ""||params.length==0) {
        return ElMessage.warning("请选中一条");
    }
    router.push({
        path: "url",
        query: {
            addAndDelIds: params
        }
    });
}
export default { routerRedirect };
